package org.example.projecttwo.entity.dto.user.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(name = "SwitchUserRoleDTO", description = "切换用户角色DTO")
public class SwitchUserRoleDTO {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long id;

    @Schema(description = "角色编码 0:普通用户 1:管理员 2:超级管理员")
    @NotNull(message = "角色编码不能为空")
    private Integer roleCode;
}